package com.xiaoyu.lingdian.vo;

import java.util.List;

import com.xiaoyu.lingdian.entity.CoreAttachment;
import com.xiaoyu.lingdian.entity.CorePointsProduct;
import com.xiaoyu.lingdian.vo.BaseVO;
import com.xiaoyu.lingdian.tool.DateUtil;

public class CorePointsProductVO implements BaseVO {
	
	/**
	*标识UUID
	*/
	private String crpopUuid;

	/**
	*标题
	*/
	private String crpopTitle;

	/**
	*价格
	*/
	private String crpopFee;

	/**
	*库存
	*/
	private Integer crpopStock;

	/**
	*简介
	*/
	private String crpopDesc;

	/**
	*状态:1启用,0禁用
	*/
	private Integer crpopStatus;

	/**
	*创建日期
	*/
	private String crpopCdate;

	/**
	*修改日期
	*/
	private String crpopUdate;

	/**
	*排序号
	*/
	private Integer crpopOrd;
	
	/**
	*所属版块
	*/
	private String crpopArea;
	
	/**
	*所属版块名称
	*/
	private String crpopAreaName;
	
	/**
	*可获得积分
	*/
	private Integer khdScore;
	
	/**
	*附件详情
	*/
	private List<CoreAttachment> list;
	
	public void setCrpopUuid(String crpopUuid) {
		this.crpopUuid = crpopUuid;
	}

	public String getCrpopUuid( ) {
		return crpopUuid;
	}

	public void setCrpopTitle(String crpopTitle) {
		this.crpopTitle = crpopTitle;
	}

	public String getCrpopTitle( ) {
		return crpopTitle;
	}

	public void setCrpopFee(String crpopFee) {
		this.crpopFee = crpopFee;
	}

	public String getCrpopFee( ) {
		return crpopFee;
	}

	public void setCrpopStock(Integer crpopStock) {
		this.crpopStock = crpopStock;
	}

	public Integer getCrpopStock( ) {
		return crpopStock;
	}

	public void setCrpopDesc(String crpopDesc) {
		this.crpopDesc = crpopDesc;
	}

	public String getCrpopDesc( ) {
		return crpopDesc;
	}

	public void setCrpopStatus(Integer crpopStatus) {
		this.crpopStatus = crpopStatus;
	}

	public Integer getCrpopStatus( ) {
		return crpopStatus;
	}

	public void setCrpopCdate(String crpopCdate) {
		this.crpopCdate = crpopCdate;
	}

	public String getCrpopCdate( ) {
		return crpopCdate;
	}

	public void setCrpopUdate(String crpopUdate) {
		this.crpopUdate = crpopUdate;
	}

	public String getCrpopUdate( ) {
		return crpopUdate;
	}

	public void setCrpopOrd(Integer crpopOrd) {
		this.crpopOrd = crpopOrd;
	}

	public Integer getCrpopOrd( ) {
		return crpopOrd;
	}

	public String getCrpopArea() {
		return crpopArea;
	}

	public void setCrpopArea(String crpopArea) {
		this.crpopArea = crpopArea;
	}

	public String getCrpopAreaName() {
		return crpopAreaName;
	}

	public void setCrpopAreaName(String crpopAreaName) {
		this.crpopAreaName = crpopAreaName;
	}

	public Integer getKhdScore() {
		return khdScore;
	}

	public void setKhdScore(Integer khdScore) {
		this.khdScore = khdScore;
	}

	public List<CoreAttachment> getList() {
		return list;
	}

	public void setList(List<CoreAttachment> list) {
		this.list = list;
	}

	public CorePointsProductVO( ) { 
	}

	@Override
	public void convertPOToVO(Object poObj) {
		if (null == poObj) {
			return;
		}

		CorePointsProduct po = (CorePointsProduct) poObj;
		this.crpopUuid = po.getCrpopUuid();
		this.crpopTitle = po.getCrpopTitle();
		this.crpopFee = po.getCrpopFee();
		this.crpopStock = po.getCrpopStock();
		this.crpopDesc = po.getCrpopDesc();
		this.crpopStatus = po.getCrpopStatus();
		this.crpopCdate = po.getCrpopCdate()!=null?DateUtil.formatTimesTampDate(po.getCrpopCdate()):"";
		this.crpopUdate = po.getCrpopUdate()!=null?DateUtil.formatTimesTampDate(po.getCrpopUdate()):"";
		this.crpopOrd = po.getCrpopOrd();
		this.crpopArea = po.getCrpopArea();
		this.crpopAreaName = po.getCrpopAreaName();
	}
	
}